﻿using System;
using nRoute.Components.Composition;
using nRoute.Utilities;

namespace nRoute.Mapping
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
    public class DefineViewViewModelAttribute
		 : MapViewViewModelBaseAttribute
    {
        public DefineViewViewModelAttribute(Type viewType, Type viewModelType)
            : base(viewModelType, viewModelType)
        {
            Guard.ArgumentNotNull(viewType, "viewType");
            Guard.ArgumentNotNull(viewModelType, "viewModelType");
        }
    }
}